﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ForumsBrowser.DataObjects
{
    [Serializable]
    public class GuidAccessibleList<T> : List<T> where T : IGuidIdObject
    {
        public T this[Guid index]
        {
            get
            {
                return this.FirstOrDefault(i => i.Id == index);
            }
        }
    }
}
